package com.tyqx.hashchaindao.mapper;


import com.tyqx.hashchainbean.module.SysRoleResource;
import com.tyqx.hashchainbean.vo.PerOrResourceParamVO;
import com.tyqx.hashchainbean.vo.PerOrResourceVO;
import com.tyqx.hashchainbean.vo.SysResourceIDVO;
import com.tyqx.hashchainbean.vo.SysRoleResourceVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysRoleResourceMapper {

	public SysRoleResource getById(@Param(value = "rrId") Long rrId)throws Exception;

	public List<SysRoleResource>	getListByMap(Map<String, Object> param)throws Exception;

	public Integer getCountByMap(Map<String, Object> param)throws Exception;

	public Integer save(@Param("sysRoleResourceList")List<SysRoleResourceVO> sysRoleResourceList)throws Exception;

	public Integer modify(SysRoleResource sysRoleResource)throws Exception;

	public Integer removeById(@Param(value = "rrId") Long rrId)throws Exception;

	public List<PerOrResourceParamVO> getListById(@Param("roleId") Long roleId);

	public Integer removeByRoleAndRrId(@Param("roleId") Long roleId, @Param("rrId") Long rrId);

	public Integer removeByRoleId(@Param(value = "roleId") Long roleId);

	public Integer removeByResId(@Param(value = "resId") Long resId);

	public List<SysResourceIDVO> getSysRoleResourceByRoleId(@Param(value = "roleId") Long roleId);
}
